package com.kancy.stream.rabbit.message;

/**
 * SimpleChannelMessage
 *
 * @author kancy
 * @date 2020/3/8 16:57
 */
public class SimpleChannelMessage extends ChannelMessage{
    private String channelKey;

    public SimpleChannelMessage(String channelKey) {
        this.channelKey = channelKey;
        setChannelKey(channelKey);
    }

    /**
     * 获取消息通道的key
     *
     * @return
     */
    @Override
    public String getChannelKey() {
        return channelKey;
    }
}
